﻿using System;
using System.Net;
using System.Linq;
using System.Xml.Linq;

namespace RFW.Weather.WeatherFlash
{
	public class Barometer
	{
		public decimal Raw { get; internal set; }
		public decimal SL { get; internal set; }
		public decimal RawRate { get; internal set; }
		public decimal SLRate { get; internal set; }

		public HighLow RawHigh { get; internal set; }
		public HighLow RawLow { get; internal set; }

		public override string ToString()
		{
			return string.Format("{0:N2} {1}", this.Raw, this.RawRate < 0 ? "Falling" : "Rising");
		}
	}
}
